<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>eNewStore</title>

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link  rel="stylesheet" href="<c:url value="/assets/css/bootstrap.css" />">
    <link  rel="stylesheet" href="<c:url value="/assets/css/global.css"/>">

</head>

<!-- HTML code from Bootply.com editor -->

<body>

<!-- Header -->
<jsp:include page="../Menu_template/menuHeader.jsp"/>
<!-- /Header -->

<!-- Main -->
<div class="container">

    <!-- upper section -->

    <div class="row">
        <jsp:include page="../Menu_template/menu_sidePrepa.jsp"/>
        <!-- /span-3 -->
        <div class="col-md-9">

            <!-- column 2 -->
            <a href="/listeCommande"><strong><i class="glyphicon glyphicon-dashboard"></i> Liste Commandes</strong></a>
            <hr>
            <div class="row">
                <!-- center left-->
                <div class="col-md-7">

                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h4>Processing Status</h4>
                        </div>
                        <div class="panel-body">

                            <h1>Affectation des commandes</h1>

                            <div id="listAffectation" class="table-responsive">
                                <table>
                                    <th>Reference</th>
                                    <th>Date création</th>
                                    <th>Statut</th>


                                </tr>
                                    <form class="form-signin" role="form"  action="/lstCommandesNonAffectees/affecte" method="POST">
                                        <c:forEach var="liste" items="${lstCmd}">
                                            <tr>
                                                <td> <a href="/commande/${liste.sRefCommnande}">${liste.sRefCommnande}</a></td>
                                                <td> ${liste.dDateCrea}</td>
                                                <td> ${liste.sLibelleArt}</td>
                                                <td> <button class="btn btn-xs btn-primary btn-block" name="sRefCmd" value=${liste.sRefCommnande} type="submit">AFFECTER</button></td>
                                            </tr>
                                        </c:forEach>
                                    </form>

                                </table>
                                </div>

                        </div>
                        <!--/panel-body-->


                    </div>
                    <!--/panel-->
                </div>
                <!--/col-->
            </div>


            <script type='text/javascript'
                    src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>


            <script type='text/javascript'
                    src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>

        </div>
    </div>
</div>
</body>
</html>